//
//	File Name   :	Buffer.cpp
//	Description :	Buffer implementation file.
//	Author		:	William McVicar
//  Mail		:	mcvicar.william@gmail.com
//

//  Precompiled Header
#include "CommonDefines.h"

//  Library Includes

//  Local Includes

//  This includes
#include "Buffer.h"

//	Macros

//  Static Variables

//  Static Function Prototypes

//  Implementation

namespace Protein
{

Buffer::Buffer()
: m_iNumElements( 0 )
, m_iElementSize( 0 )
, m_iNumBytes	( 0 )
, m_pData		( NULL )

{

}

Buffer::Buffer( i32 _iNumElements, i32 _iElemSize )
: m_iNumElements( _iNumElements )
, m_iElementSize( _iElemSize )
, m_iNumBytes	( _iNumElements * _iElemSize )
{
	m_pData = new c8[ m_iNumBytes ];
}

Buffer::~Buffer()
{
	delete [] m_pData;
	m_pData = NULL;
}

}